/*
 *@Author: 张楚
 *@Date: 2021-08-16 11:11:19
 *@Description: 我已转发
*/
import 'package:flutter/material.dart';
import 'package:totaldemo/project/official_detail/widget/TabViewItem_Widget.dart';
import 'package:totaldemo/project/official_detail/widget/official_untils.dart';

class FinishRepostPage extends StatefulWidget {
  const FinishRepostPage({Key key}) : super(key: key);
  @override
  _FinishRepostPageState createState() => _FinishRepostPageState();
}

class _FinishRepostPageState extends State<FinishRepostPage> {
  @override
  Widget build(BuildContext context) {
    return SingleChildScrollView(
      child: Column(
        children: [
          //topbanner
          Banner(),
          //item
          TabViewItemWidget(
            title: 'ddddd',
            urgencyState: '3',
            documentOffice: '国务院',
            createTime: '2020-3-35',
            channel: '1',
            isShowPublishState: true,
            publishState: 2,
          ),
          TabViewItemWidget(
            title: 'ddddd',
            urgencyState: '3',
            documentOffice: '国务院',
            createTime: '2020-3-35',
            channel: '1',
            isShowPublishState: true,
            publishState: 3,
          ),
          TabViewItemWidget(
            title: 'ddddd',
            urgencyState: '1',
            documentOffice: '国务院',
            createTime: '2020-3-35',
            channel: '2',
            isShowPublishState: true,
            publishState: 3,
          ),
        ],
      ),
    );
  }

//banner
  Widget Banner() {
    return Container(
      margin: EdgeInsets.only(right: 15, left: 15, top: 10),
      child: Row(
        mainAxisAlignment: MainAxisAlignment.spaceAround,
        // crossAxisAlignment: CrossAxisAlignment,
        children: [
          //下拉框
          Padding(
            padding: const EdgeInsets.only(right: 20),
            child: Text(
              '全部',
              style: TextStyle(fontSize: 16),
            ),
          ),

          //搜索框
          Expanded(
              child:
                  OfficialUntils.seachBar(title: '请输入任务名称', function: () {})),

          //时间选择
          GestureDetector(
            onTap: () {},
            child: Padding(
              padding: const EdgeInsets.only(left: 20),
              child: Icon(
                Icons.timer_outlined,
                size: 25,
                color: Color(0xff1D268E),
              ),
            ),
          )
        ],
      ),
    );
  }
}
